<template>
<stUMomentStar ref="star" :moment-id="momentId" :group-flag="$config.dynamicGroupFlag" @starItemClick="starItemClick"></stUMomentStar>
</template>

<script>
/**
 * 动态点赞列表页
 */
import stUMomentStar from '../../../../../../../components/moment/web/components/app/uni-app/st-u-moment-star/st-u-moment-star.vue'
export default {
  components: {stUMomentStar},
  data () {
    return {
      momentId: '',
    }
  },
  onLoad(options){
    this.momentId = options.momentId
  },
  // 下拉刷新
  onPullDownRefresh(){
    this.$refs.star.refreshStarData(()=>{uni.stopPullDownRefresh()})
  },
  onReachBottom(){
    this.$refs.star.loadStarData()
  },
  methods: {
    starItemClick(item){
      uni.navigateTo({
        url: '/pages/index/userDetail?userId=' + item.ownerUserId
      })
    }
  }
}
</script>

<style scoped>

</style>